/*
 * @Author: intellectual-seeker 3336339701@qq.com
 * @Date: 2025-03-13 22:21:07
 * @LastEditors: intellectual-seeker 3336339701@qq.com
 * @LastEditTime: 2025-03-13 22:42:08
 * @FilePath: /code/lesson24/pipe/test.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <iostream>
#include <string>
#include <algorithm>

//语法监测，是编译器监测然后将结果告诉vscode
//cgdb，带图形化界面的调试工具
int func()
{
    int ret = 0;
    int i = 0;
    for(; i < 100; i++)
    {
        ret += i;
    }

    return ret;
}

int main()
{
    std::cout << "hello world" << std::endl;
    
    int result = func();
    std::cout << "result: " << result << std::endl;

    return 0;
}